<?php
session_start();
?>
<!doctype html>
<html lang="en">
<head>
<link>
<meta charset="UTF-8">
<meta name="viewport"
      content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Регистрация</title>
<link rel="stylesheet" href="C:/OSPanel/domains/auth/assets/style.css">
    <style>
        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: cornflowerblue;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: "Franklin Gothic Book",sans-serif;
        }

        form{

            color: white;
            display: flex;
            flex-direction: column;


        }
        input {
            margin:10px 0;
            padding: 10px;
            border: unset;
            border-bottom: 2px solid #e3e3e3;
            outline: none;
        }

        button{
            padding: 10px;
            border: unset;
            background-color: #e3e3e3;
            cursor: pointer;
        }

        a {
            color: aqua;
            font-weight: bold;
            text-decoration: none;

        }

        p{
            margin: 10px 0;
        }
        .msg {
            border: 2px solid #ffa908;
            border-radius: 5px;
            padding: 10px;
            text-align: center;
            font-weight: bold;

        }
    </style>
</head>
<body>

<form action="vendor/signup.php" method="post" enctype="multipart/form-data">
    <p align="center">Регистрация</p>
    <label>ФИО</label>
    <input type="text" name="full_name">
    <label>Логин</label>
    <input type="text" name="login">
    <label>E-mail</label>
    <input type="email" name="email">
    <label>Изображение пользователя</label>
    <input name="avatar" type="file">
    <label>Пароль</label>
    <input type="password" name="password" placeholder="Введите новый пароль">
    <label>Подтверждение пароля</label>
    <input type="password" name="password_confirm" placeholder="Подтвердите пароль">
    <button>Зарегистрироваться</button>
    <p>
        У Вас уже есть аккаунт? - <a href="index.php">авторизируйтесь</a>
    </p>

        <?php
        if (isset($_SESSION['message']))
        {
            echo '<p class="msg">' . $_SESSION['message'] . '</p>';
        }
        unset($_SESSION['message']);
        ?>

</form>
</body>
</html>
